//#ifndef BACKUPDB_H
//#define BACKUPDB_H

//#include <QObject>
//#include <QSqlDatabase>
//#include <QSqlQuery>
//#include <QSqlError>
//#include <QVariant>
//#include <QWidget>
//#include <QString>
//#include <QDebug>
//#include <QDateTime>
//#include <stdio.h>

//#define HOST "120.46.25.211"
//#define PORT 3306
//#define database "cloudBackup_DB"
//#define user "lhr"
//#define passwd "lhr.547521"

//class BackupDBManager : public QObject
//{
//    Q_OBJECT
//public:
//    BackupDBManager(QObject *parent = nullptr);
//    ~BackupDBManager();

//    bool buildConnection(const QString& backupDBName);

//    //从数据库读取path+etag 存到fileInfoMap
//    bool readFileAInfo(int usrID, std::unordered_map<std::string, std::string>& fileInfoMap);

//    // 将map中所有备份文件的属性信息存储到数据库
//    bool saveToDB(int usrID, std::unordered_map<std::string, std::string>& fileInfoMap);
//private:
//    QSqlDatabase backupdb;
//};

//#endif // BACKUPDB_H
